import time
import socket
import json


s = socket.socket()
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('localhost', 9002))
s.listen(2)

while True:
    c, addr = s.accept()

    sd = b'6,7,8,9,10\n'
    print(time.time(), sd)
    c.send(sd)

    k = c.recv(208)
    print(k, type(k))

    k = c.recv(208)
    print(k)
